package com.File文件;


import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Prop {
    public static void main(String[] args) throws IOException {
        FileWriter fw=new FileWriter("D:\\\\黑马视频\\\\copyfile\\\\student.txt");
        Properties prop=new Properties();
        prop.put("123","11");
        prop.put("234","22");
        prop.put("345","33");
        prop.put("456","44");
        prop.put("567","55");
        prop.put("678","66");
        prop.store(fw,null);
        fw.close();
    }
}
class Pa{
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("D:\\黑马视频\\copyfile\\student.txt");
        Properties prop=new Properties();
        prop.load(fr);
        System.out.println(prop);
        fr.close();

    }
}